<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>配置操作日志</title>
</head>
<body>
    <div ng-app="SettinglogApp" ng-controller="SettinglogCtrl">
        <div class="row">
            <ui-container url="rule/settinglog/list" key="rule-settinglog-list-00">
                <ui-search-form>
                    <search-input class="col-md-2" name="description" placeholder="内容"></search-input>
                    <search-select class="col-md-2" name="target">
                        <option value="">请选择变更对象</option>
                        <option value="0">用户信息</option>
                        <option value="1">角色权限信息</option>
                        <option value="2">机构信息</option>
                        <option value="3">供货商信息</option>
                        <option value="4">计件价格区间配置</option>
                        <option value="5">配重价格区间配置</option>
                        <option value="6">配送员配费</option>
                        <option value="7">运单信息</option>
                        <option value="8">混合区间配置</option>
                        <option value="9">主拖件规则信息</option>
                        <option value="10">计算薪资规则</option>
                    </search-select>
                </ui-search-form>
                <ui-table dischecked="true">

                </ui-table>
                <table-page/>
            </ui-container>
        </div>
    </div>
<script>
    angular.module('SettinglogApp',['ui.table']);
    angular.module('SettinglogApp').controller('SettinglogCtrl', function($scope){
        $scope._columns=[{name:'id',head:'id'},
            {name:'target',head:'变更对象',render(data,value){
                switch (value+""){
                    case "0":
                        return "用户信息";
                    case "1":
                        return "角色权限信息";
                    case "2":
                        return "机构信息";
                    case "3":
                        return "供货商信息";
                    case "4":
                        return "计件价格区间配置";
                    case "5":
                        return "配重价格区间配置";
                    case "6":
                        return "配送员配费";
                    case "7":
                        return "运单信息";
                    case  "8":
                        return "混合区间配置";
                    case  "9":
                        return "主拖件规则信息";
                    default:
                        return "未知";
                }
              }},
            {name:'createTime',head:'创建时间',render(data,value){
                return new Date(value).format()}
            },
            {name:'description',head:'描述'}
        ];

    });
</script>
</body>
</html>
